package net.starwifi.duobao.utils.sms;

import net.sf.json.JSONObject;

/**
 * Created by STX on 2015/9/29.
 */
public class SMSResponse {

    private String RET_CODE;//发送状态编码 0000:发送成功

    private String RET_VO;

    private String RET_MSG;//发送结果信息

    public static SMSResponse encode(String res){
        JSONObject jsonobject = JSONObject.fromObject(res);
        SMSResponse smsResponse=(SMSResponse)JSONObject.toBean(jsonobject,SMSResponse.class);
        return smsResponse;
    }

    public String toString(){
        StringBuffer stringBuffer=new StringBuffer();
        stringBuffer.append("{"+"RET_CODE:"+this.RET_CODE);
        stringBuffer.append(",RET_VO:"+this.RET_VO);
        stringBuffer.append(",RET_MSG:"+this.RET_MSG+"}");
        return stringBuffer.toString();
    }

    public String getRET_CODE() {
        return RET_CODE;
    }

    public void setRET_CODE(String RET_CODE) {
        this.RET_CODE = RET_CODE;
    }

    public String getRET_VO() {
        return RET_VO;
    }

    public void setRET_VO(String RET_VO) {
        this.RET_VO = RET_VO;
    }

    public String getRET_MSG() {
        return RET_MSG;
    }

    public void setRET_MSG(String RET_MSG) {
        this.RET_MSG = RET_MSG;
    }
}
